/**
 * File    : UserService.java
 * Created : 2007-12-20
 * By      : lhg
 */
package com.luhuiguo.sso.tutorial.services;

import java.util.List;

import org.springframework.security.userdetails.UserDetailsService;

import com.luhuiguo.sso.tutorial.entity.Role;
import com.luhuiguo.sso.tutorial.entity.User;

/**
 * @author lhg
 * @version $Id: UserService.java 2 2008-10-04 13:04:21Z LuHuiguo $
 * 
 */
public interface UserService extends UserDetailsService {

	public User getUser(String id);

	public List<User> getAllUser(int... rowStartIdxAndCount);

	public Role getRole(String id);

	public List<Role> getAllRole(int... rowStartIdxAndCount);

	public void createUser(User user);

	public void updateUser(User user);

	public void deleteUser(String id);

	public void createRole(Role role);

	public void updateRole(Role role);

	public void deleteRole(String id);

}
